import java.util.Random;

import org.newdawn.slick.Color;

import net.phys2d.raw.Body;
import net.phys2d.raw.shapes.Circle;


public class EntityCollectable extends Entity {

	public EntityCollectable(float radius, float weight, Platform platform) {
		this.body = new Body(new Circle(radius), weight);
		body.setGravityEffected(false);
		body.addExcludedBody(platform.body);
		this.x = platform.body.getPosition().getX()-platform.width/2 + rand.nextInt((int)platform.width);
		this.y = platform.body.getPosition().getY() - 25;
		this.body.setPosition(x, y);
	}
	
	/*
	 * Called when the player picks up the powerup
	 */
	public void onPickup() {
		
	}
	
	public Color getColor() {
		return null;
	}
	
	
	public Platform platform;

	private static Random rand = new Random();
}
